package cn.homework.service.impl;

import cn.homework.dao.ProductDao;
import cn.homework.dao.impl.ProductDaoImpl;
import cn.homework.domain.Product;
import cn.homework.service.ProductService;

import java.util.List;
import java.util.Map;

/**
 * @author ACT
 */
public class ProductServiceImpl implements ProductService {
    private ProductDao dao = new ProductDaoImpl();

    @Override
    public List<Product> findProductCommon() {
        return dao.findProductCommonList();
    }

    @Override
    public List<Product> findProductDiscounted() {
        return dao.findProductDiscounted();
    }

    @Override
    public List<Product> findProductHot() {
        return dao.findProductHot();
    }

    @Override
    public List<Product> findProductQuery(Map<String, String[]> map) {
        return dao.findProductQuery(map);
    }

    @Override
    public List<Product> findProductByKitchen() {
        return dao.findProductByKitchen();
    }

    @Override
    public List<Product> findProductByWashing() {
        return dao.findProductByWashing();
    }

    @Override
    public List<Product> findProductByComputer() {
        return dao.findProductByComputer();
    }

    @Override
    public List<Product> findProductByTV() {
        return dao.findProductByTV();
    }

    @Override
    public List<Product> findProductAllShow() {
        return dao.findProductAllShow();
    }

    @Override
    public List<Product> findProductAllKitchenShow() {
        return dao.findProductAllKitchenShow();
    }

    @Override
    public List<Product> findProductAllWashingShow() {
        return dao.findProductAllWashingShow();
    }

    @Override
    public List<Product> findProductAllComputerShow() {
        return dao.findProductAllComputerShow();
    }

    @Override
    public List<Product> findProductAllTVShow() {
        return dao.findProductAllTVShow();
    }

    @Override
    public Product findProductDetailById(String id) {
        return dao.findProductDetailById(id);
    }
}
